package com.dkakunsi.monev.report;

import java.io.InputStream;
import java.math.BigDecimal;

import com.dkakunsi.monev.entity.Realisasi;

public class MonitoringKegiatanReportModel extends KeuanganReportModel {
	private String program;
	private String bulan;
	
	public MonitoringKegiatanReportModel(Realisasi r) {
		super(r.getKegiatan());
		this.program = r.getKegiatan().getProgram().getNama();
		this.bulan = String.valueOf(r.getBulan());
		this.realisasiAnggaran = BigDecimal.valueOf(r.getDana());
		this.realisasiFisik = r.getFisik();
	}

	public String getProgram() {
		return program;
	}

	public void setProgram(String program) {
		this.program = program;
	}

	public String getBulan() {
		return bulan;
	}

	public void setBulan(String bulan) {
		this.bulan = bulan;
	}
	
	public static String reportPath() {
		return "/com/dkakunsi/pu/monev/res/report/MonitoringByKegiatan.jasper";
	}
	
	public static InputStream reportStream() {
		return ProgramReportModel.class.getResourceAsStream(reportPath());
	}


}
